<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="layui/css/layui.css">
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script src="layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 --> 
<script type="text/javascript">
//创建实例  要想数据初始化 这里必须要写
layui.use(['table', 'layer', 'form', 'laydate'], function () {
	var table = layui.table;
	layer = layui.layer;
	form = layui.form;
});
</script>

</head>
<body>
<center><br><h2>添加资讯</h2><br><br></center>

<form action="<%=basePath%>addinfo.do" method="post" enctype="multipart/form-data" name="form1" id="form1" class="layui-form">
  <p>标题：
    <input type="text" name="title" id="textfield" />
  </p>
  <p>资讯类型：
    <select name="type" id="select">
    <option value="视频">视频</option>
    <option value="图片">图片</option>
    <option value="文本">文本</option>
    </select>
  </p>
  <p>上传文件：
    <input type="file" name="filebody" id="file1" />
  </p>
  <p>内容：
    <textarea name="content" id="textarea" cols="45" rows="5"></textarea>
  </p>
  <p>状态：
    <input type="radio" name="state" id="radio" value="1" />
  发布
  <input type="radio" name="state" id="radio2" value="0" />
  不发布</p>
  <p>
    <input type="submit" name="button" id="button" value="保存" />
  </p>
</form>
<center>${notice }</center>

</body>
</html>